class CreateBranchOfficesDepartments < ActiveRecord::Migration
  def self.up
    create_table :branch_offices_departments, :id => false do |t|
      t.references :branch_office
      t.references :department
      t.timestamps
    end
    add_index :branch_offices_departments, [:branch_office_id]
    add_index :branch_offices_departments, [:department_id]
  end

  def self.down

  end
end
